package cn.jobstart.search;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.jobstart.pubInter.BaseSearch;
import cn.jobstart.model.TalentPortrait;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import lombok.Data;
/**
*   @author sunke
*   @Date 2023-10-14 23:17:57
*   @description TalentPortraitSearch      人才画像
*/


@Data
@ApiModel("人才画像TalentPortraitSearch")
public abstract class TalentPortraitSearch<Sub extends TalentPortraitSearch<Sub>> extends BaseSearch {
    @ApiModelProperty(value = "主键")
    private List idIn;
    @ApiModelProperty(value = "大于排序")
    private Integer sortNumGreater;
    @ApiModelProperty(value = "小于排序")
    private Integer sortNumLess;
    @ApiModelProperty(value = "是否显示 1:是:Y,0:否:N")
    private List showFlagIn;
    @ApiModelProperty(value = "是否删除 1:删除:Y,0:正常:N")
    private Integer delFlagEq=0;
    @ApiModelProperty(value = "版本")
    private Integer versionEq;
    @ApiModelProperty(value = "人才ID")
    private String personIdEq;
    @ApiModelProperty(value = "类型 1:教育:Education,2:工作:Work,3:技能:Skills")
    private List typeFlagIn;
    @ApiModelProperty(value = "管理员ID")
    private String adminIdEq;
    @ApiModelProperty(value = "管理员姓名")
    private String adminTruenameLike;
    @ApiModelProperty(value = "标识")
    private String labelLike;

    public TalentPortraitSearch() {
        setDelFlagEq(0);
    }



    /**
    * 返回子类Sub
    * @return
    */
    public abstract Sub getSubThis();

    @Override
    public String createTimeFiled() {
        return TalentPortrait.CREATE_TIME;
    }
    @Override
    public String updateTimeFiled() {
        return TalentPortrait.UPDATE_TIME;
    }
    @Override
    public String  setDefaultField() {
        return TalentPortrait.CREATE_TIME;
    }
    @Override
    public String pkField() {
        return TalentPortrait.ID;
    }

    @Override
    public String  toString() {
        return "TalentPortraitSearch{}"+super.toString();
    }
    public Sub setIdIn(List idIn){
        this.idIn = idIn;
        setInField(TalentPortrait.ID, idIn);
        return getSubThis();
    }
    public Sub setSortNumGreater(Integer sortNumGreater){
        this.sortNumGreater = sortNumGreater;
        setGreaterField(TalentPortrait.SORT_NUM, sortNumGreater);
        return getSubThis();
    }
    public Sub setSortNumLess(Integer sortNumLess){
        this.sortNumLess = sortNumLess;
        setLessField(TalentPortrait.SORT_NUM, sortNumLess);
        return getSubThis();
    }
    public Sub setShowFlagIn(List showFlagIn){
        this.showFlagIn = showFlagIn;
        setInField(TalentPortrait.SHOW_FLAG, showFlagIn);
        return getSubThis();
    }
    public Sub setDelFlagEq(Integer delFlagEq){
        this.delFlagEq = delFlagEq;
        setEqualField(TalentPortrait.DEL_FLAG, delFlagEq);
        return getSubThis();
    }
    public Sub setVersionEq(Integer versionEq){
        this.versionEq = versionEq;
        setEqualField(TalentPortrait.VERSION, versionEq);
        return getSubThis();
    }
    public Sub setPersonIdEq(String personIdEq){
        this.personIdEq = personIdEq;
        setEqualField(TalentPortrait.PERSON_ID, personIdEq);
        return getSubThis();
    }
    public Sub setTypeFlagIn(List typeFlagIn){
        this.typeFlagIn = typeFlagIn;
        setInField(TalentPortrait.TYPE_FLAG, typeFlagIn);
        return getSubThis();
    }
    public Sub setAdminIdEq(String adminIdEq){
        this.adminIdEq = adminIdEq;
        setEqualField(TalentPortrait.ADMIN_ID, adminIdEq);
        return getSubThis();
    }
    public Sub setAdminTruenameLike(String adminTruenameLike){
        this.adminTruenameLike = adminTruenameLike;
        setLikeField(TalentPortrait.ADMIN_TRUENAME, adminTruenameLike);
        return getSubThis();
    }
    public Sub setLabelLike(String labelLike){
        this.labelLike = labelLike;
        setLikeField(TalentPortrait.LABEL, labelLike);
        return getSubThis();
    }
}